#include "sampler.h"

namespace tls{

  sampler::~sampler(){}

  //jitter
  jitter::~jitter(){
    delete[] s;
  }
  vec3 jitter::sample()const{
    if(iter==n){
      base=std::rand() %n;
      iter=0;
    }
    return s[(base+iter++) %n];
  }

}//namespace tls
